﻿Type=Activity
Version=5.8
ModulesStructureVersion=1
B4A=true
@EndOfDesignText@
#Region  Activity Attributes 
	#FullScreen: False
	#IncludeTitle: True
#End Region

Sub Process_Globals
	'These global variables will be declared once when the application starts.
	'These variables can be accessed from all modules.

End Sub

Sub Globals
	'These global variables will be redeclared each time the activity is created.
	'These variables can only be accessed from this module.
	
	Private lbltitle As Label
	Private pv As PhotoView
End Sub

Sub Activity_Create(FirstTime As Boolean)
	'Do not forget to load the layout file created with the visual designer. For example:
	Activity.LoadLayout("layphotoviewer")
	
End Sub
Sub showPic(picobj As pvObj)
	If picobj.title.Length>0 Then 	lbltitle.Text=picobj.title
	comm.loadimg(picobj.Url,pv)
	Log("Pic:"&picobj.Url)
End Sub
Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)
	If UserClosed Then
		pv.ImageBitmap=Null
		Activity.Finish
	End If
End Sub


Sub ivback_Click
	Activity.Finish
End Sub